package com.whc.gulimall.scekill.schedules;

import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Async;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * @author angaoen
 */
//@EnableScheduling
//@Slf4j
//@Component
//@EnableAsync
public class HelloSchedule {

//    /**
//     * TaskExecutionAutoConfiguration
//     * @throws InterruptedException
//     */
//    @Scheduled(cron = "*/3 * * * * ?")
//    @Async
//    public void hello() throws InterruptedException {
//        log.info("hello");
//        Thread.sleep(3000);
//    }

}
